package com.nulstudio.cloud.common.entity;

import java.math.BigDecimal;

public final class NulInventory {
    private int id;

    private int warehouseId;

    private int commodityId;

    private int supplierId;

    private BigDecimal quantity;

    public NulInventory(int id, int warehouseId, int commodityId, int supplierId, BigDecimal quantity) {
        this.id = id;
        this.warehouseId = warehouseId;
        this.commodityId = commodityId;
        this.supplierId = supplierId;
        this.quantity = quantity;
    }

    public NulInventory(int warehouseId, int commodityId, int supplierId, BigDecimal quantity) {
        this.id = 0;
        this.warehouseId = warehouseId;
        this.commodityId = commodityId;
        this.supplierId = supplierId;
        this.quantity = quantity;
    }

    public NulInventory() {

    }

    public int getId() {
        return id;
    }

    public int getWarehouseId() {
        return warehouseId;
    }

    public int getCommodityId() {
        return commodityId;
    }

    public int getSupplierId() {
        return supplierId;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    private void setId(int id) {
        this.id = id;
    }

    private void setWarehouseId(int warehouseId) {
        this.warehouseId = warehouseId;
    }

    private void setCommodityId(int commodityId) {
        this.commodityId = commodityId;
    }

    private void setSupplierId(int supplierId) {
        this.supplierId = supplierId;
    }

    private void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }
}
